package com.spzx.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spzx.product.api.domain.ProductSku;
import com.spzx.product.api.domain.SkuQuery;

import java.util.List;

public interface ProductSkuMapper extends BaseMapper<ProductSku> {


    //===================给前端使用的=========================

    /**
     * 获取销量好的SKU
     *
     * @return
     */
    List<ProductSku> selectTopSale();

    /**
     * 商品列表查询
     *
     * @param skuQuery
     * @return
     */
    List<ProductSku> selectProductSkuList(SkuQuery skuQuery);
}
